.class public Les/y8;
.super Les/u8;
.source "TransparencyChangeFilter.java"


# instance fields
.field private i:I

.field private j:F

.field private k:J

.field private l:Z

.field private m:J

.field private n:Z


# direct methods
.method public constructor <init>()V
    .locals 2

    const-string v0, "uniform mat4 uMVPMatrix;\nuniform mat4 uSTMatrix;\nattribute vec4 aPosition;\nattribute vec4 aTextureCoord;\nvarying vec2 vTextureCoord;\nvoid main() {\n  gl_Position = uMVPMatrix * aPosition;\n  vTextureCoord = (uSTMatrix * aTextureCoord).xy;\n}\n"

    const-string v1, "precision mediump float;\nvarying vec2 vTextureCoord;\nuniform sampler2D sTexture;\nuniform float s_alpha;\nvoid main() {\n    lowp vec4 textureColor = texture2D(sTexture, vTextureCoord);\n    gl_FragColor = vec4(textureColor.rgb, s_alpha);\n}\n"

    .line 1
    invoke-direct {p0, v0, v1}, Les/u8;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    const-wide/32 v0, 0x1e8480

    .line 2
    iput-wide v0, p0, Les/y8;->k:J

    const/4 v0, 0x1

    .line 3
    iput-boolean v0, p0, Les/y8;->l:Z

    return-void
.end method

.method public constructor <init>(JZ)V
    .locals 3

    const-string v0, "uniform mat4 uMVPMatrix;\nuniform mat4 uSTMatrix;\nattribute vec4 aPosition;\nattribute vec4 aTextureCoord;\nvarying vec2 vTextureCoord;\nvoid main() {\n  gl_Position = uMVPMatrix * aPosition;\n  vTextureCoord = (uSTMatrix * aTextureCoord).xy;\n}\n"

    const-string v1, "precision mediump float;\nvarying vec2 vTextureCoord;\nuniform sampler2D sTexture;\nuniform float s_alpha;\nvoid main() {\n    lowp vec4 textureColor = texture2D(sTexture, vTextureCoord);\n    gl_FragColor = vec4(textureColor.rgb, s_alpha);\n}\n"

    .line 4
    invoke-direct {p0, v0, v1}, Les/u8;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    const-wide/16 v0, 0x0

    cmp-long v2, p1, v0

    if-gtz v2, :cond_0

    const-wide/32 p1, 0x1e8480

    .line 5
    :cond_0
    iput-wide p1, p0, Les/y8;->k:J

    .line 6
    iput-boolean p3, p0, Les/y8;->l:Z

    return-void
.end method


# virtual methods
.method public a()I
    .locals 1

    const/16 v0, 0xde1

    return v0
.end method

.method protected b(J)V
    .locals 2

    .line 1
    iget-boolean v0, p0, Les/y8;->n:Z

    if-nez v0, :cond_0

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Les/y8;->n:Z

    .line 3
    iput-wide p1, p0, Les/y8;->m:J

    .line 4
    :cond_0
    iget-wide v0, p0, Les/y8;->m:J

    sub-long/2addr p1, v0

    long-to-float p1, p1

    iget-wide v0, p0, Les/y8;->k:J

    long-to-float p2, v0

    div-float/2addr p1, p2

    const/high16 p2, 0x3f800000    # 1.0f

    mul-float p1, p1, p2

    iput p1, p0, Les/y8;->j:F

    const/4 v0, 0x0

    .line 5
    invoke-static {p2, p1}, Ljava/lang/Math;->min(FF)F

    move-result p1

    invoke-static {v0, p1}, Ljava/lang/Math;->max(FF)F

    move-result p1

    iput p1, p0, Les/y8;->j:F

    .line 6
    iget-boolean v0, p0, Les/y8;->l:Z

    if-eqz v0, :cond_1

    sub-float/2addr p2, p1

    .line 7
    iput p2, p0, Les/y8;->j:F

    .line 8
    :cond_1
    iget p1, p0, Les/y8;->i:I

    iget p2, p0, Les/y8;->j:F

    invoke-static {p1, p2}, Landroid/opengl/GLES20;->glUniform1f(IF)V

    const-string p1, "glUniform1f"

    .line 9
    invoke-static {p1}, Lcom/esfile/screen/recorder/media/glutils/b;->a(Ljava/lang/String;)V

    return-void
.end method

.method protected c()V
    .locals 2

    .line 1
    iget v0, p0, Les/u8;->a:I

    const-string v1, "s_alpha"

    invoke-static {v0, v1}, Landroid/opengl/GLES20;->glGetUniformLocation(ILjava/lang/String;)I

    move-result v0

    iput v0, p0, Les/y8;->i:I

    const-string v0, "glGetUniformLocation s_alpha"

    .line 2
    invoke-static {v0}, Lcom/esfile/screen/recorder/media/glutils/b;->a(Ljava/lang/String;)V

    .line 3
    iget v0, p0, Les/y8;->i:I

    invoke-static {v0, v1}, Lcom/esfile/screen/recorder/media/glutils/b;->a(ILjava/lang/String;)V

    return-void
.end method
